var baseUrl = "http://hengzhi.ayvvv.com/api/";

function get(url, data,success, error) {
    // alert(url)
    $.ajax({
        url: baseUrl + url,
        type: 'get',
        // data:data,
        dataType: 'json',
        success: function(data) {
            success(data);
        },
        error: function(data) {
        }
    })
}

function post(url, data, success, error) {
    $.ajax({
        url: baseUrl + url,
        type: 'post',
        data: data,
        dataType: 'json',
        success: function(data) {
            success(data);
        },
        error: function(data) {
            error(data);
        }

    })
}